<?php

	class Editor {
		
		private $mode;
		
		function __construct() {
//			Session::serverconnect();
		}
				
		static function buildContent($table) {
			$result = "<table>";
			
//			$content = 
			
			$result .= Editor::buildRow("test",null,null);
			$result .= Editor::buildRow("test2",null,null);
			
			$result .= "</table>";
			
			return $result;
		}
		
		static function buildRow($text, $image, $site) {
			$result = Editor::buildHeader();
			
			//bild und text
			if (isset($text) && isset($image)) {
				
			//nur text
			} else if (isset($text)) {
				$result .= $text;
				
			//nur bild
			} else if (isset($image)) {
				
				
			}
			
			$result .= Editor::buildFooter();
			
			return $result;
		}
	
		static private function buildHeader(){
			return "<tr>";
		}
	
		static private function buildFooter(){
			return "</table>";
		}
		
	}

?>